//
//  HMAddCaseThreeCell.m
//  仿真开发
//
//  Created by B.HOPE on 2017/3/25.
//  Copyright © 2017年 B.HOPE. All rights reserved.
//

#import "HMAddCaseThreeCell.h"
#import <Masonry.h>

@interface HMAddCaseThreeCell ()

@property (nonatomic, strong) UILabel *leftLabel;

@end

@implementation HMAddCaseThreeCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self setupUI];
    }
    
    return self;
}

- (void)setupUI
{
    _leftLabel = [[UILabel alloc] init];
    _leftLabel.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:_leftLabel];
    [_leftLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.left.offset(10);
    }];
    
    _yesImg = [[UIImageView alloc] init];
    _yesImg.image = [UIImage imageNamed:@"login_right"];
    _yesImg.hidden = YES;
    [self.contentView addSubview:_yesImg];
    [_yesImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.right.offset(-10);
    }];
}

- (void)setStr:(NSString *)str
{
    _str = str;
    
    _leftLabel.text = _str;
}

//- (void)setType:(BOOL)type
//{
//    _type = type;
//    
//    _yesImg.hidden = NO;
//}

@end
